package com.ruoyi.lc.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lc.mapper.LcDatamodelColumnMapper;
import com.ruoyi.lc.domain.LcDatamodelColumn;
import com.ruoyi.lc.service.ILcDatamodelColumnService;

/**
 * 数据建模列Service业务层处理
 * 
 * @author qibotian
 * @date 2025-01-07
 */
@Service
public class LcDatamodelColumnServiceImpl implements ILcDatamodelColumnService 
{
    @Autowired
    private LcDatamodelColumnMapper lcDatamodelColumnMapper;

    /**
     * 查询数据建模列
     * 
     * @param ID 数据建模列主键
     * @return 数据建模列
     */
    @Override
    public LcDatamodelColumn selectLcDatamodelColumnByID(Long ID)
    {
        return lcDatamodelColumnMapper.selectLcDatamodelColumnByID(ID);
    }

    /**
     * 查询数据建模列列表
     * 
     * @param lcDatamodelColumn 数据建模列
     * @return 数据建模列
     */
    @Override
    public List<LcDatamodelColumn> selectLcDatamodelColumnList(LcDatamodelColumn lcDatamodelColumn)
    {
        return lcDatamodelColumnMapper.selectLcDatamodelColumnList(lcDatamodelColumn);
    }

    /**
     * 新增数据建模列
     * 
     * @param lcDatamodelColumn 数据建模列
     * @return 结果
     */
    @Override
    public int insertLcDatamodelColumn(LcDatamodelColumn lcDatamodelColumn)
    {
        lcDatamodelColumn.setCreateTime(DateUtils.getNowDate());
        return lcDatamodelColumnMapper.insertLcDatamodelColumn(lcDatamodelColumn);
    }

    /**
     * 修改数据建模列
     * 
     * @param lcDatamodelColumn 数据建模列
     * @return 结果
     */
    @Override
    public int updateLcDatamodelColumn(LcDatamodelColumn lcDatamodelColumn)
    {
        lcDatamodelColumn.setUpdateTime(DateUtils.getNowDate());
        return lcDatamodelColumnMapper.updateLcDatamodelColumn(lcDatamodelColumn);
    }

    /**
     * 批量删除数据建模列
     * 
     * @param IDs 需要删除的数据建模列主键
     * @return 结果
     */
    @Override
    public int deleteLcDatamodelColumnByIDs(Long[] IDs)
    {
        return lcDatamodelColumnMapper.deleteLcDatamodelColumnByIDs(IDs);
    }

    /**
     * 删除数据建模列信息
     * 
     * @param ID 数据建模列主键
     * @return 结果
     */
    @Override
    public int deleteLcDatamodelColumnByID(Long ID)
    {
        return lcDatamodelColumnMapper.deleteLcDatamodelColumnByID(ID);
    }
}
